import Layout from '@/layout'

const purchasingRouter = {
    path: '/purchasing/planned',
    component: Layout,
    redirect: 'noRedirect',
    name: 'purchasing',
    alwaysShow: true,
    hidden:false,
    meta: {
        title: '采购管理',
        abbre: '采购',
        icon: 'left_menu_purchasing',
        navigation:'/purchasing',
        id: '407'
    },
    children: [{
        path: '/purchasing/planned',
        component: () =>
            import ('@/views/purchasing/purchasingPlanned'),
        name: 'purchasing_planned',
        hidden:false,
        meta: { title: '计划采购', noCache: true,  navigation:'/purchasing/planned', icon: 'menu_big_data'}
    },{
        path: '/purchasing/purchase',
        component: () =>
            import ('@/views/purchasing/purchasingPurchase'),
        name: 'purchasing_purchase',
        hidden:false,
        meta: { title: '采购单', noCache: true,  navigation:'/purchasing/purchase', icon: 'menu_big_data'}
    },{
        path: '/purchasing/purchase/add',
        component: () =>
            import ('@/views/purchasing/purchasingPurchase_add'),
        name: 'purchasing_purchase_add',
        hidden:true,
        meta: { title: '备货采购', bread:'采购单,备货采购', noCache: true,  navigation:'/purchasing/purchase', icon: 'menu_big_data'}
    },{
        path: '/purchasing/purchase/edit/:id',
        component: () =>
            import ('@/views/purchasing/purchasingPurchase_edit'),
        name: 'purchasing_purchase_edit',
        hidden:true,
        meta: { title: '编辑采购单', bread:'采购单,编辑采购单', noCache: true,  navigation:'/purchasing/purchase', icon: 'menu_big_data'}
    },{
        path: '/purchasing/purchase/record/:id',
        component: () =>
            import ('@/views/purchasing/purchasingPurchase_record'),
        name: 'purchasing_purchase_record',
        hidden:true,
        meta: { title: '录单', bread:'采购单,录单', noCache: true,  navigation:'/purchasing/purchase', icon: 'menu_big_data'}
    },{
        path: '/purchasing/purchase/see/:id',
        component: () =>
            import ('@/views/purchasing/purchasingPurchase_see'),
        name: 'purchasing_purchase_see',
        hidden:true,
        meta: { title: '查看采购单', bread:'采购单,查看采购单', noCache: true,  navigation:'/purchasing/purchase', icon: 'menu_big_data'}
    },{
        path: '/purchasing/buyer',
        component: () =>
            import ('@/views/purchasing/purchasingBuyer'),
        name: 'purchasing_buyer',
        hidden:false,
        meta: { title: '采购员', noCache: true,  navigation:'/purchasing/buyer', icon: 'menu_big_data'}
    },{
        path: '/purchasing/supplier',
        component: () =>
            import ('@/views/purchasing/purchasingSupplier'),
        name: 'purchasing_supplier',
        hidden:false,
        meta: { title: '供应商', noCache: true,  navigation:'/purchasing/supplier', icon: 'menu_big_data'}
    },{
        path: '/purchasing/return',
        component: () =>
            import ('@/views/purchasing/purchasingReturn'),
        name: 'purchasing_return',
        hidden:false,
        meta: { title: '采购退货', noCache: true,  navigation:'/purchasing/return', icon: 'menu_big_data'}
    },{
        path: '/purchasing/return/add',
        component: () =>
            import ('@/views/purchasing/purchasingReturn_add'),
        name: 'purchasing_return_add',
        hidden:true,
        meta: { title: '添加退货单', bread:'采购退货,添加退货单', noCache: true,  navigation:'/purchasing/return', icon: 'menu_big_data'}
    },{
        path: '/purchasing/return/edit/:id',
        component: () =>
            import ('@/views/purchasing/purchasingReturn_edit'),
        name: 'purchasing_return_edit',
        hidden: true,
        meta: { title: '审核退货单', bread:'采购退货,审核退货单', noCache: true,  navigation:'/purchasing/return', icon: 'menu_big_data'}
    },{
        path: '/purchasing/return/see/:id',
        component: () =>
            import ('@/views/purchasing/purchasingReturn_see'),
        name: 'purchasing_return_see',
        hidden:true,
        meta: { title: '查看退货单', bread:'采购退货,查看退货单', noCache: true,  navigation:'/purchasing/return', icon: 'menu_big_data'}
    }]
}

export default purchasingRouter